package com.rosense.srpingboot.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.Table;
/**
 * 
 * @author 李岩飞
 * @email eliyanfei@126.com
 * @date 2018年3月10日 下午6:12:04
 */
@Entity
@Table(name = "userlog", indexes = { @Index(name = "account", columnList = "account"),
		@Index(name = "created", columnList = "created") })
public class UserLog {
	@Id
	@GeneratedValue
	private Integer id;//
	@Column(length = 64)
	private String account;//
	@Column(length = 64)
	private String type; // 
	private Date created; //

	public UserLog() {
		this.created = new Date();
	}

	public String getAccount() {
		return account;
	}
	
	public void setAccount(String account) {
		this.account = account;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

}
